package com.sys.domain;

/**
 * @ClassName: Upload 
 * @Description: TODO(用户上传的域模型类) 
 * @author 詹金浩 
 * @date 2018年3月8日 上午11:26:28
 */
public class Upload implements Comparable<Upload> {
	//进行上传操作的用户id（唯一）
	private String userId;
	//被上传的文件id（唯一）
	private String fileId;
	//文件的状态（上传者未清除自己上传记录、上传者清除自己上传记录但未删除文件）
	private String status;
	//上传的时间
	private String upTime;
	//文件大小
	private Long size;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getUpTime() {
		return upTime;
	}
	public void setUpTime(String upTime) {
		this.upTime = upTime;
	}
	public Long getSize() {
		return size;
	}
	public void setSize(Long size) {
		this.size = size;
	}
	@Override
	public int compareTo(Upload o) {
		return o.getUpTime().compareTo(upTime);
	}
	
}